package chu.dejian.ui.fragmet;

import android.os.Bundle;

import com.sam.blemodule.R;

import com.sam.ui.base.fragment.BaseFragment;
import com.sam.widget.headerBar.BaseHeaderView;
import com.sam.widget.headerBar.LeftImgTitleRightImgBar;

public class ReferenceTableFragment extends BaseFragment {
	private static ReferenceTableFragment instance;
	public synchronized static ReferenceTableFragment getInstance(){
		if(instance == null){
			instance = new ReferenceTableFragment();
		}
		return instance;
	}

	private LeftImgTitleRightImgBar header;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.fragment_reference_table);
	}

	public void findView() {
		header = (LeftImgTitleRightImgBar) findViewById(R.id.header);
	}

	public void initView() {
		header.setOnHeaderClickListener(onHeaderClickListener);
	}

	private BaseHeaderView.OnHeaderClickListener onHeaderClickListener = new BaseHeaderView.OnHeaderClickListener() {
		@Override
		public void onHeaderLeftClicked() {
			backToPreviewFragment();
		}

		@Override
		public void onHeaderRightClicked() {

		}
	};
}
